import request from '@/utils/request'

// 获取验证码
export function getCaptchaImage() {
  return request({
    url: '/captchaImage',
    method: 'get'
  })
}

//登录，不带验证码
export function login(data) {
  return request({
    url: '/api/login',
    method: 'post',
    data: data
  })
}

//登录，带验证码
export function userLogin(data) {
  return request({
    url: '/api/user/login',
    method: 'post',
    data: data
  })
}

//注册
export function submit(data) {
  return request({
    url: '/sysUser/submit',
    method: 'post',
    data: data
  })
}
